#if !defined(AFX_REMOTEFILEPLAY_H__6C2D4D5D_85CC_4C46_A223_70B5E528F401__INCLUDED_)
#define AFX_REMOTEFILEPLAY_H__6C2D4D5D_85CC_4C46_A223_70B5E528F401__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// RemoteFilePlay.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CRemoteFilePlay dialog

class CRemoteFilePlay : public CDialog
{
// Construction
public:
	CRemoteFilePlay(CWnd* pParent = NULL);   // standard constructor
	
	LONG m_lServerID;
	LONG m_lServerType;
	BOOL m_bDown;
	BOOL m_bSearchDown;
	LONG m_lPlayHandle;
	BOOL m_bSound;
	BOOL m_bPause;
	BOOL bGetMaxTime;
	BOOL m_bFullScreen;
	HWND m_hPlayWnd;
	HWND m_hPareTabWnd;
	HWND m_hPareDlgWnd;
	CRect m_rcScreen;
	CRect m_rcWnd;
	CRect m_rcPareDlg;
	CRect m_rcPareTab;
	CRect m_rcParent;
	LONG  m_lFileHandle;
	HANDLE m_hFileThread;
	int m_iFileNum;
	int m_iChannel;
	int iSelServer;
	int iFileType;
	LONG lFileHandle;
	DWORD m_nFileTime;
	DWORD m_nTotalFrames;
	int m_nTotalSecond;
	int m_nTotalMinute;
	int m_nTotalHour;
	BOOL m_bFindFile;
	BOOL m_bFileDownload;
	LONG m_lStartChan;
	char filename[200];
	char filenamedownload[256];
	BOOL m_bSaveFile;
	BOOL m_bSetFrame;
	
//	int m_nPlayHandle1;

	void SetParentWnd(HWND *hhWnd, int iParentNum);
	void F_Exit();
	void F_InitUI();
	void F_SetStopState();
	void F_Play();
	void F_SetPlayState();
	void F_SetPauseState();
	void F_StopPlay();
	void F_ShowNormal();
	void F_EnableFlashWnd(BOOL bEnable);
	void F_ShowFullScreen();
	BOOL IsInWnd(CPoint point);
// Dialog Data
	//{{AFX_DATA(CRemoteFilePlay)
	enum { IDD = IDD_SUBDLG_REMOTEFILE };
	CListCtrl	m_Filelist;
	CComboBox	m_ChannelCtrl;
	CSliderCtrl	m_ctlProgress;
	CStatic	m_PlayWnd;
	CProgressCtrl	m_downProgress;
	CComboBox	m_ServerCtrl;
	CComboBox	m_FileType;
	CSliderCtrl	m_ctlVolume;
	CTime	m_ctDateStart;
	CTime	m_ctDateStop;
	CTime	m_ctTimeStart;
	CTime	m_ctTimeStop;
	CString	m_sCardNum;
	CString	m_staticdownload;
	BOOL	m_bCard;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CRemoteFilePlay)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL
protected:
	HICON m_hSoundStartIcon;
	HICON m_hSoundStopIcon;
	
	HICON m_hPlayEnableIcon;
	HICON m_hPlayDisableIcon;
		
	HICON m_hPauseEnableIcon;
	HICON m_hPauseDisableIcon;
		
	HICON m_hStopEnableIcon;
	HICON m_hStopDisableIcon;
		
	HICON m_hGotoHeadDisableIcon;
	HICON m_hGotoHeadEnableIcon;
		
	HICON m_hGotoTailEnableIcon;
	HICON m_hGotoTailDisableIcon;
		
	HICON m_hFastDisableIcon;
	HICON m_hFastEnableIcon;
		
	HICON m_hSlowDisableIcon;
	HICON m_hSlowEnableIcon;
		
	HICON m_hStepEnableIcon;
	HICON m_hStepDisableIcon;
		
	HICON m_hStepBackEnableIcon;
	HICON m_hStepBackDisableIcon;
		
	HICON m_hCaptureIcon;	
// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CRemoteFilePlay)
	virtual BOOL OnInitDialog();
	afx_msg void OnDblclkRemotefilrlist(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnReleasedcaptureProgressSlider(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnSearchlist();
	afx_msg void OnDownload();
	afx_msg void OnPlayFile();
	afx_msg void OnStop();
	afx_msg void OnSlow();
	afx_msg void OnFast();
	afx_msg void OnCappic();
	afx_msg void OnStep();
	afx_msg void OnSound();
	afx_msg void OnDestroy();
	afx_msg void OnSelchangeComboserver();
	virtual void OnCancel();
	afx_msg void OnButtonsave();
	afx_msg void OnButtonstopsave();
	afx_msg void OnGotostart();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_REMOTEFILEPLAY_H__6C2D4D5D_85CC_4C46_A223_70B5E528F401__INCLUDED_)
